package cn.tedu._04mybatis.pojo.entity;

import lombok.Data;

import java.util.Date;

/**
 * 前提：安装Lombok依赖
 * @setter和g@etter方法、@toString方法
 * 也可以使用@Data注解快速创建setter和getter方法、toString方法
 */
@Data
public class WeiBo {
    private long id;
    private String content;
    private Date created;
    private long userId;

    /*public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return "WeiBo{" +
                "id=" + id +
                ", content='" + content + '\'' +
                ", created=" + created +
                ", userId=" + userId +
                '}';
    }*/
}
